package com.dgty.dg_common.base


/**
 * Title: BaseResult.kt
 * Description:
 * Created DateTime: 2023-02-08
 * Created by xxl.
 */
open class BaseResult<T>(
    val code: Int,
    val msg: String,
    val data: T
) : IBaseResponse<T> {

    override fun code() = code

    override fun msg() = msg

    override fun data() = data

    override fun success() = code == 200

}